package cn.skyclass.events
{
	import flash.events.Event;
	
	/**
	 * 用于全局的提示信息的事件
	 * 主要用于远程调用的文字提示等
	 */
	public class GlobalTipEvent extends Event
	{
		// 分别表示 开始显示提示信息；结束显示提示信息；显示临时的提示信息，过段时间后自动隐藏
		public static const START_TIP:String = "startTip";
		public static const END_TIP:String = "endTip";
		public static const TEMP_TIP:String = "tempTip";
				
		public var msg:String;
		public var data:Object;
		
		// 临时提示需持续的毫秒数
		public var duration:int = 3000;
		
		public function GlobalTipEvent(type:String, msg:String=null, data:Object=null, duration:int=3000){
			super(type);
			this.msg = msg;
			this.data = data;
			this.duration = duration;
		}
		
		override public function clone():Event{
			return new GlobalTipEvent(this.type, this.msg, this.data, this.duration);
		}				
	}
}